import service from '@/utils/baseApi.js'
// 地址列表
export function bMemberAddressList(data) {
	return service({
		url: '/framework/bMemberAddress/list',
		method: 'Get',
		data
	})
}
export function bMemberAddressselectList(data) {
	return service({
		url: '/framework/bMemberAddress/selectList',
		method: 'Get',
		data
	})
}
// 添加
export function bMemberAddressAdd(data) {
	return service({
		url: '/framework/bMemberAddress',
		method: 'post',
		data
	})
}
// 地址编辑
export function bMemberAddressEdit(data) {
	return service({
		url: '/framework/bMemberAddress',
		method: 'put',
		data
	})
}
// 地址详情
export function shopAccountDetail(addressId) {
	return service({
		url: '/framework/bMemberAddress/' + addressId,
		method: 'get',

	})
}
// 地址删除
export function shopAccountDel(addressIds) {
	return service({
		url: '/framework/bMemberAddress/' + addressIds,
		method: 'delete'

	})
}
//获取默认会员地址
export function getDefaultAddress(data) {
	return service({
		url: '/framework/bMemberAddress/default',
		method: 'get',
		data
	})
}
// 设置默认会员地址
export function setDefaultChange(data) {
	return service({
		url: '/framework/bMemberAddress/setDefault/' + data.addressId,
		method: 'put',
		data
	})
}
